package com.gouying.design.patterns.state;

public class StateMain {
    public static void main(String[] args) {
        PlayState p3 = new TiredState(null);
        PlayState p2 = new VictoryState(p3);
        PlayState p1 = new PowerState(p2);

        p1.play();

    }
}
